package com.maigang.service.customer;

import com.maigang.pojo.vo.CartVo;
import com.maigang.utils.common.ServerResponse;

/**
 * @ClassName: ICartService
 * @Description: 购物车服务层接口
 * @author: yubao.jin
 * @date: 2018/4/9
 * @version:V1.0
 */
public interface ICartService {
    ServerResponse<CartVo> add(Integer userId, Integer productId, Integer count, Integer isPresale, Integer pageNum, Integer pageSize);

    ServerResponse<CartVo> update(Integer userId, Integer cartId, Integer count, Integer pageNum, Integer pageSize);

    ServerResponse<CartVo> deleteProduct(Integer userId, String projectIds, Integer pageNum, Integer pageSize);

    ServerResponse<CartVo> list(Integer userId, Integer pageNum, Integer pageSize);

    ServerResponse<CartVo> selectOrUnselect(Integer userId, Integer productId, Integer checked, Integer pageNum, Integer pageSize, String cartIds);

    ServerResponse<Integer> getCartProductCount(Integer userId);
}
